package com.patterns.demo.composite;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/12/3
 */
public class Test {

    public static void main(String[] args) {

        Tree tree = new Tree("A");

        TreeNode treeNode1 = new TreeNode("a");
        TreeNode treeNode2 = new TreeNode("b");

        treeNode1.add(treeNode2);
        tree.root.add(treeNode1);

        System.out.println("the tree is built done!");
    }
}
